package top.appx.exception;

import org.springframework.http.HttpStatus;

/**
 * Created by lhzxd on 2017/5/3.
 */
public class MsgException extends RuntimeException {

    private HttpStatus httpStatus;

    public MsgException(HttpStatus httpStatus, String errorMsg){
        super(errorMsg);
        this.httpStatus = httpStatus;
    }


    public HttpStatus getHttpStatus() {
        return httpStatus;
    }

    public void setHttpStatus(HttpStatus httpStatus) {
        this.httpStatus = httpStatus;
    }
}
